import { DEFAULT_LAYOUT } from "../base";
import { AppRouteRecordRaw } from "../types";

const LIST: AppRouteRecordRaw = {
  path: "/short-link-manage",
  name: "list",
  component: DEFAULT_LAYOUT,
  meta: {
    locale: "短链管理",
    requiresAuth: true,
    icon: "icon-list",
    order: 4
  },
  children: [
    {
      path: "group",
      name: "Group",
      component: () => import("@/views/list/card/index.vue"),
      meta: {
        locale: "我的分组",
        requiresAuth: true,
        roles: ["*"]
      }
    },
    {
      path: "me", // The midline path complies with SEO specifications
      name: "Me",
      component: () => import("@/views/list/search-table/index.vue"),
      meta: {
        locale: "我的短链",
        requiresAuth: true,
        roles: ["*"]
      }
    }
  ]
};

export default LIST;
